import { useCounterStore } from "../store/counter"
const counter=useCounterStore()
export const handleNavigation = () => {
  if (counter.userData?.islogin) {
    uni.switchTab({
      url: '/pages/home/home'
    })
  } else {
    uni.navigateTo({
      url: '/pages/mine/login'
    })
  }
}